<?php 
class Profile_Left extends CWidget{

	public function run(){
		$model = Members::model()->findByPk($_GET['id']);
		$event = Events::model()->findAllByAttributes(array('member_id'=>$_GET['id'])) ;
		$this->render('profile_left',array('model'=>$model,'event'=>$event));
	}
}

 ?>